<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::namespace('Api')->group(function () {
    Route::post('/debug/{api_id}', 'DebugController@apiTest')->where(['api_id' => '\d+']);
    Route::resource('api', 'ApiController')
        ->only(['show', 'index']);
    Route::resource('project', 'ApiProjectController')
        ->only(['show', 'index']);
    Route::resource('request_preset', 'ApiPresetController')
        ->only(['show', 'index']);
});